package com.weiwei.diancan.bean;

import android.support.annotation.NonNull;

import java.io.Serializable;
import java.util.Comparator;
import java.util.List;

/**
 * Created by weiwei on 2017/4/7.
 * Describe:
 */

public class FindOrderBean implements Serializable {

    /**
     * is_success : 1
     * reason : 数据获取成功.
     * order_list : [{"order_id":"298","shop_id":"1","order_type":"0","father_id":"0","order_no":"201702080001","waiter_id":"1","table_id":"9","order_person":"11","order_1":"-104.00","order_2":"96.00","order_price":"200.00","order_by":"","order_desc":"","order_state":"2","is_clean":"1","order_time":"2017-02-08 16:46:09","day":"2017-02-08","insert_time":"2017-02-08 16:33:16","log_list":[{"log_id":"1834","log_name":"枸杞煲猪手","log_price":"68.00","log_count":"1.0","log_unit":"份","log_type":"0","log_money":"68.00"},{"log_id":"1835","log_name":"香菇炖鸡汤","log_price":"28.00","log_count":"1.0","log_unit":"份","log_type":"0","log_money":"28.00"}]},{"order_id":"299","shop_id":"1","order_type":"0","father_id":"0","order_no":"201702080002","waiter_id":"1","table_id":"13","order_person":"2","order_1":"324.00","order_2":"724.00","order_price":"400.00","order_by":"","order_desc":"","order_state":"2","is_clean":"1","order_time":"2017-02-09 09:19:09","day":"2017-02-08","insert_time":"2017-02-08 16:50:54","log_list":[{"log_id":"1836","log_name":"餐具费用","log_price":"2.00","log_count":"2.0","log_unit":"份","log_type":"3","log_money":"4.00"},{"log_id":"1837","log_name":"枸杞煲猪手","log_price":"68.00","log_count":"1.0","log_unit":"份","log_type":"0","log_money":"68.00"},{"log_id":"1839","log_name":"开洋干丝","log_price":"58.00","log_count":"1.0","log_unit":"份","log_type":"0","log_money":"58.00"},{"log_id":"1840","log_name":"佛跳墙十个字菜名测试","log_price":"498.00","log_count":"1.0","log_unit":"份","log_type":"0","log_money":"498.00"},{"log_id":"1841","log_name":"牛肉锅贴","log_price":"68.00","log_count":"1.0","log_unit":"份","log_type":"0","log_money":"68.00"},{"log_id":"1842","log_name":"鸭油酥烧饼","log_price":"28.00","log_count":"1.0","log_unit":"份","log_type":"0","log_money":"28.00"}]}]
     * dish_list : [{"log_name":"佛跳墙十个字菜名测试","log_type":"0","counts":"1"},{"log_name":"开洋干丝","log_type":"0","counts":"1"},{"log_name":"枸杞煲猪手","log_type":"0","counts":"2"},{"log_name":"牛肉锅贴","log_type":"0","counts":"1"},{"log_name":"香菇炖鸡汤","log_type":"0","counts":"1"},{"log_name":"鸭油酥烧饼","log_type":"0","counts":"1"}]
     */

    private String is_success;
    private String reason;
    private List<OrderListBean> order_list;
    private List<DishListBean> dish_list;

    public String getIs_success() {
        return is_success;
    }

    public void setIs_success(String is_success) {
        this.is_success = is_success;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public List<OrderListBean> getOrder_list() {
        return order_list;
    }

    public void setOrder_list(List<OrderListBean> order_list) {
        this.order_list = order_list;
    }

    public List<DishListBean> getDish_list() {
        return dish_list;
    }

    public void setDish_list(List<DishListBean> dish_list) {
        this.dish_list = dish_list;
    }

    public static class OrderListBean implements Serializable {
        @Override
        public String toString() {
            return "OrderListBean{" +
                    "order_id='" + order_id + '\'' +
                    ", shop_id='" + shop_id + '\'' +
                    ", order_type='" + order_type + '\'' +
                    ", father_id='" + father_id + '\'' +
                    ", order_no='" + order_no + '\'' +
                    ", waiter_id='" + waiter_id + '\'' +
                    ", table_id='" + table_id + '\'' +
                    ", order_person='" + order_person + '\'' +
                    ", order_1='" + order_1 + '\'' +
                    ", order_2='" + order_2 + '\'' +
                    ", order_price='" + order_price + '\'' +
                    ", order_by='" + order_by + '\'' +
                    ", order_desc='" + order_desc + '\'' +
                    ", order_state='" + order_state + '\'' +
                    ", is_clean='" + is_clean + '\'' +
                    ", order_time='" + order_time + '\'' +
                    ", day='" + day + '\'' +
                    ", insert_time='" + insert_time + '\'' +
                    ", log_list=" + log_list +
                    '}';
        }

        /**
         * order_id : 298
         * shop_id : 1
         * order_type : 0
         * father_id : 0
         * order_no : 201702080001
         * waiter_id : 1
         * table_id : 9
         * order_person : 11
         * order_1 : -104.00
         * order_2 : 96.00
         * order_price : 200.00
         * order_by :
         * order_desc :
         * order_state : 2
         * is_clean : 1
         * order_time : 2017-02-08 16:46:09
         * day : 2017-02-08
         * insert_time : 2017-02-08 16:33:16
         * log_list : [{"log_id":"1834","log_name":"枸杞煲猪手","log_price":"68.00","log_count":"1.0","log_unit":"份","log_type":"0","log_money":"68.00"},{"log_id":"1835","log_name":"香菇炖鸡汤","log_price":"28.00","log_count":"1.0","log_unit":"份","log_type":"0","log_money":"28.00"}]
         */

        private String order_id;
        private String shop_id;
        private String order_type;
        private String father_id;
        private String order_no;
        private String waiter_id;
        private String table_id;
        private String order_person;
        private String order_1;
        private String order_2;
        private String order_price;
        private String order_by;
        private String order_desc;
        private String order_state;
        private String is_clean;
        private String order_time;
        private String day;
        private String insert_time;
        private List<LogListBean> log_list;

        public String getOrder_id() {
            return order_id;
        }

        public void setOrder_id(String order_id) {
            this.order_id = order_id;
        }

        public String getShop_id() {
            return shop_id;
        }

        public void setShop_id(String shop_id) {
            this.shop_id = shop_id;
        }

        public String getOrder_type() {
            return order_type;
        }

        public void setOrder_type(String order_type) {
            this.order_type = order_type;
        }

        public String getFather_id() {
            return father_id;
        }

        public void setFather_id(String father_id) {
            this.father_id = father_id;
        }

        public String getOrder_no() {
            return order_no;
        }

        public void setOrder_no(String order_no) {
            this.order_no = order_no;
        }

        public String getWaiter_id() {
            return waiter_id;
        }

        public void setWaiter_id(String waiter_id) {
            this.waiter_id = waiter_id;
        }

        public String getTable_id() {
            return table_id;
        }

        public void setTable_id(String table_id) {
            this.table_id = table_id;
        }

        public String getOrder_person() {
            return order_person;
        }

        public void setOrder_person(String order_person) {
            this.order_person = order_person;
        }

        public String getOrder_1() {
            return order_1;
        }

        public void setOrder_1(String order_1) {
            this.order_1 = order_1;
        }

        public String getOrder_2() {
            return order_2;
        }

        public void setOrder_2(String order_2) {
            this.order_2 = order_2;
        }

        public String getOrder_price() {
            return order_price;
        }

        public void setOrder_price(String order_price) {
            this.order_price = order_price;
        }

        public String getOrder_by() {
            return order_by;
        }

        public void setOrder_by(String order_by) {
            this.order_by = order_by;
        }

        public String getOrder_desc() {
            return order_desc;
        }

        public void setOrder_desc(String order_desc) {
            this.order_desc = order_desc;
        }

        public String getOrder_state() {
            return order_state;
        }

        public void setOrder_state(String order_state) {
            this.order_state = order_state;
        }

        public String getIs_clean() {
            return is_clean;
        }

        public void setIs_clean(String is_clean) {
            this.is_clean = is_clean;
        }

        public String getOrder_time() {
            return order_time;
        }

        public void setOrder_time(String order_time) {
            this.order_time = order_time;
        }

        public String getDay() {
            return day;
        }

        public void setDay(String day) {
            this.day = day;
        }

        public String getInsert_time() {
            return insert_time;
        }

        public void setInsert_time(String insert_time) {
            this.insert_time = insert_time;
        }

        public List<LogListBean> getLog_list() {
            return log_list;
        }

        public void setLog_list(List<LogListBean> log_list) {
            this.log_list = log_list;
        }

        public static class LogListBean implements Serializable{
            /**
             * log_id : 1834
             * log_name : 枸杞煲猪手
             * log_price : 68.00
             * log_count : 1.0
             * log_unit : 份
             * log_type : 0
             * log_money : 68.00
             */

            private String log_id;
            private String log_name;
            private String log_price;
            private String log_count;
            private String log_unit;
            private String log_type;
            private String log_money;

            public String getLog_id() {
                return log_id;
            }

            public void setLog_id(String log_id) {
                this.log_id = log_id;
            }

            public String getLog_name() {
                return log_name;
            }

            public void setLog_name(String log_name) {
                this.log_name = log_name;
            }

            public String getLog_price() {
                return log_price;
            }

            public void setLog_price(String log_price) {
                this.log_price = log_price;
            }

            public String getLog_count() {
                return log_count;
            }

            public void setLog_count(String log_count) {
                this.log_count = log_count;
            }

            public String getLog_unit() {
                return log_unit;
            }

            public void setLog_unit(String log_unit) {
                this.log_unit = log_unit;
            }

            public String getLog_type() {
                return log_type;
            }

            public void setLog_type(String log_type) {
                this.log_type = log_type;
            }

            public String getLog_money() {
                return log_money;
            }

            public void setLog_money(String log_money) {
                this.log_money = log_money;
            }
        }
    }

    public static class DishListBean implements Serializable{
        /**
         * log_name : 佛跳墙十个字菜名测试
         * log_type : 0
         * counts : 1
         */

        private String log_name;
        private String log_type;
        private String counts;

        public String getLog_name() {
            return log_name;
        }

        public void setLog_name(String log_name) {
            this.log_name = log_name;
        }

        public String getLog_type() {
            return log_type;
        }

        public void setLog_type(String log_type) {
            this.log_type = log_type;
        }

        public String getCounts() {
            return counts;
        }

        public void setCounts(String counts) {
            this.counts = counts;
        }

    }
}
